#include <AT89X52.h>

unsigned char wei[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
unsigned char duan[8]={0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};

unsigned int i;
void Delay()
{
unsigned int a;
for(a=65535;a>0;a--)
{

}
}
void main()
{
while (1)
{
for(i=0;;i++)
{
P1=wei[i%8];
P0=duan[i%8];
Delay();
}
}

}